import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import course from '@/components/course'
import about from '@/components/about'
import login from '@/components/login'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'index',
      component: index
    },
    {
      path: '/course',
      name: 'course',
      component: course
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
  ]
})
